function [ c ] = cost( fragment_costs, fragments_build )
%UNTITLED2 Summary of this function goes here
%   Detailed explanation goes here

c = sum(sum((fragment_costs.*fragments_build)))/2;

end

